package com.kaishengit.pojo;

import com.kaishengit.dao.core.Date4jUtil;
import com.kaishengit.dao.core.DateUtil;


public class Task {
	private String id;
	private String cont;
	private String starttime;
	private String endtime;
	private String createtime;
	private String type;
	private String userid;
	private User user;
	
	public String getState() {
		return Date4jUtil.getState(this.starttime, this.endtime);
	}
	public String getTime() {
		return DateUtil.getNiceDate(this.createtime);
	}
	public String getId() {
		return id;
	}
	public void setId(String id) {
		this.id = id;
	}
	
	public String getStarttime() {
		return starttime;
	}
	public void setStarttime(String starttime) {
		this.starttime = starttime;
	}
	public String getEndtime() {
		return endtime;
	}
	public void setEndtime(String endtime) {
		this.endtime = endtime;
	}
	public String getCreatetime() {
		return createtime;
	}
	public void setCreatetime(String createtime) {
		this.createtime = createtime;
	}
	public User getUser() {
		return user;
	}
	public void setUser(User user) {
		this.user = user;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getType() {
		return type;
	}
	public void setCont(String cont) {
		this.cont = cont;
	}
	public String getCont() {
		return cont;
	}
	public void setUserid(String userid) {
		this.userid = userid;
	}
	public String getUserid() {
		return userid;
	}
	
		
}
